import axios from '@/utils/request';

export function getSingleNewsList(params) {
    return axios.post({
        url: '/single-news/list',
        data: params
    }).then((res) => {
        return res
    })
}

export function getSingleNewsListAll(params) {
    return axios.post({
        url: '/single-news/listAll',
        data: params
    }).then((res) => {
        return res
    })
}

export function editSingleNews(params) {
    return axios.post({
        url: '/single-news/edit',
        data: params
    }).then((res) => {
        return res
    })
}

export function deleteSingleNews(params) {
    return axios.post({
        url: '/single-news/delete',
        data: params
    }).then((res) => {
        return res
    })
}

export function loadSingleNews(params) {
    return axios.post({
        url: '/single-news/load',
        data: params
    }).then((res) => {
        return res
    })
}

